﻿<script asp-location="Footer">
    $(document).ready(function () {
        $('#eu-cookie-bar-notification').show();

        $('#eu-cookie-ok').click(function () {
            $.ajax({
                cache: false,
                type: 'POST',
                url: '@Url.RouteUrl("EuCookieLawAccept")',
                dataType: 'json',
                success: function (data) {
                    $('#eu-cookie-bar-notification').hide();
                },
                failure: function () {
                    alert('Cannot store value');
                }
            });
    });
    });
</script>

<div id="eu-cookie-bar-notification" class="eu-cookie-bar-notification" style="display:none;">
    <div class="buttons-more">
        <blockquote class="card-bodyquote d-inline-flex justify-content-center align-items-center w-100 mb-0">
            <p class="mb-0 text-white">@T("EUCookieLaw.Description2")</p>
            <div class="btn-group ml-2 ml-sm-3">
                <a class="ok-button btn-sm btn btn-light text-dark" id="eu-cookie-ok">@T("Common.OK")</a>
                <a class="btn btn-sm btn-info learn-more" href="@Url.RouteUrl("Topic", new { SeName = await Html.GetTopicSeName("privacyinfo", Context) })">@T("EUCookieLaw.LearnMore")</a>
            </div>
        </blockquote>
    </div>
</div>
